package com.china08.yxyapi.entity.mg.continuedu;

import java.util.Date;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 继续教育 用户-任务
 * 
 */
@SuppressWarnings("serial")
@Document(collection = "yxy.tea.continuedu.user.task")
public class YxyContinueduUserTask extends MongoBaseEntityNoId {

    @Id
    private String id;// id,使用 userId_taskId 拼接组成,唯一

    @Field(value = "user_id")
    private String userId;

    @Field(value = "task_id")
    private String taskId;

    @Field(value = "status")
    private Integer status;// 0:-进行中,-1:-未完成,1:-已完成

    @Field(value = "progress")
    private Double progress = 0.0;

    @Field(value = "name")
    private String name;// 任务名称

    @Field(value = "begin_date")
    private Date beginDate;// 任务开始时间

    @Field(value = "end_date")
    private Date endDate;// 任务结束时间

    @Field(value = "score")
    private Integer score;// 任务分数

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Double getProgress() {
        return progress;
    }

    public void setProgress(Double progress) {
        this.progress = progress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

}
